
platform_type = {
    1: "视频号",
    2: "抖音",
    3: "头条",
    4: "知乎",
    5: "百家号"
}

index = 1

value = platform_type[index] if index else "全部平台"

print(value)